from flask import Blueprint
from app.routes.admin import admin
from app.routes.main import main

def init_routes(app):
    app.register_blueprint(admin, url_prefix='/admin')
    app.register_blueprint(main)
    
    print("Registered routes:")
    for rule in app.url_map.iter_rules():
        print(f"{rule.endpoint}: {rule.rule}")
